Force usage of common gbfile api.
authoroliskoli <oliskoli>
Wed, 30 Aug 2006 20:23:24 +0000 (20:23 +0000)
committeroliskoli <oliskoli>
Wed, 30 Aug 2006 20:23:24 +0000 (20:23 +0000)
format_skeleton.c

index 551d1534c9a37236964bd18f0f3f56e6313883e3..82285d9163995c7003bd675b62fb7bc4a03732d9 100644 (file)
@@ -35,7 +35,7 @@
     Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111 USA
 
  */
+
 #include "defs.h"
 #include <ctype.h>
 
@@ -60,20 +60,28 @@ arglist_t format_skeleton_args[] = {
 static void
 format_skeleton_rd_init(const char *fname)
 {
-//     fin = xfopen(fname, "r", MYNAME);
+//     fin = gbfopen(fname, "r", MYNAME);
 }
 
 static void 
 format_skeleton_rd_deinit(void)
 {
-//     fclose(fin);
+//     gbfclose(fin);
 }
 
 static void
 format_skeleton_read(void)
 {
 //     your special code to extract waypoint, route and track
-//     information from file "fin"
+//     information from gbfile "fin"
+//
+// Sample text-file read code:
+//     char *s;
+//     while ((s = gbfgetstr(fin))) {
+//             do_anything(s);
+//     }
+//
+//
 // For waypoints:
 //         while (have waypoints) {
 //                 waypoint = waypt_new()
@@ -99,13 +107,13 @@ format_skeleton_read(void)
 static void
 format_skeleton_wr_init(const char *fname)
 {
-//     fout = xfopen(fname, "w", MYNAME);
+//     fout = gbfopen(fname, "w", MYNAME);
 }
 
 static void
 format_skeleton_wr_deinit(void)
 {
-//     fclose(fout);
+//     gbfclose(fout);
 }
 
 static void